apiVersion: v1
kind: Pod
metadata:
  name: database
  labels:
    app: postgres
spec:
  containers:
  - name: database
    image: postgresql
    ports:
    - containerPort: 5432
    env:
    - name: POSTGRES_USER
      value: "dbuser"
    - name: POSTGRES_PASSWORD
      value: "1357924680d"
    - name: POSTGRES_DATABASE
      value: "mqh_db"
    - name: POSTGRES_HOST
      value: "localhost"
#    - name: MYSQL_ROOT_PASSWORD
#      value: "root"
    volumeMounts:
    - mountPath: /var/lib/postgresql
      name: dbvolume
  volumes:
  - name: dbvolume
    emptyDir:
      sizeLimit: 500Mi
